
<?php
$this->headScript()->appendFile($this->publicUrl . "Scripts/formsValidation.js");
$this->headScript()->captureStart();
?>

function validateCategoryForm() {
	var validator = new FormValidator('category');	
	validator.isNotEmpty('<?= Zend_Registry::get("shopDefaultLanguage")->getZendId(); ?>', 
		'<?= $this->translate('isEmpty') ?>');
	return validator.result;
}

<?php $this->headScript()->captureEnd(); ?>